package nf.util;

public class ArgumentParseException extends Exception
{
	private ArgumentParser.Option option;
	
	public ArgumentParseException(String message)
	{
		this(null, message);
	}
	
	public ArgumentParseException(ArgumentParser.Option option)
	{
		this(option, null);
	}
	
	public ArgumentParseException(ArgumentParser.Option option, String message)
	{
		this(option, message, null);
	}
	
	public ArgumentParseException(ArgumentParser.Option option, String message,
		Throwable cause)
	{
		super(message, cause);
		this.option = option;
	}
	
	public ArgumentParser.Option getOption()
	{
		return option;
	}
}
